namespace ProjectOdataServer2.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("BOM")]
    public partial class BOM
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }

        [Required]
        [StringLength(30)]
        public string material { get; set; }

        public int requirement { get; set; }

        [Required]
        [StringLength(10)]
        public string unit { get; set; }

        [Required]
        [StringLength(25)]
        public string product_name { get; set; }

        [Column(TypeName = "date")]
        public DateTime material_input_day { get; set; }

        [Column(TypeName = "date")]
        public DateTime? material_end_day { get; set; }
    }
}
